package cn.iocoder.yudao.module.measure.dal.dataobject.warning;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 设备报警联系人配置表
 * </p>
 *
 * @author zhengbzh
 * @date 2025-06-11 14:56:55
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@Builder
@TableName("business_device_warn_person_config")
public class BusinessDeviceWarnPersonConfig {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    protected Long id;

    @TableField(value = "created_time", fill = FieldFill.INSERT)
    protected LocalDateTime createdTime;

    @TableField(value = "created_by", fill = FieldFill.INSERT)
    protected Long createdBy;

    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    protected LocalDateTime updatedTime;

    @TableField(value = "updated_by", fill = FieldFill.INSERT_UPDATE)
    protected Long updatedBy;

    /**
     * 租户id
     */
    @TableField(value = "created_org_id", condition = EQUAL)
    private Long createdOrgId;
    /**
     * 测量点id
     */
    @TableField(value = "measure_point_id", condition = EQUAL)
    private Long measurePointId;
    /**
     * 通知方式
     */
    @TableField(value = "message_way", condition = LIKE)
    private String messageWay;
    /**
     * 通知级别 多个级别间用，分割
     */
    @TableField(value = "warn_level", condition = LIKE)
    private String warnLevel;
    /**
     * 消息目标 当方式为站内信时，为用户id；为邮件时，为用户邮箱地址；为短信时，为手机号码
     */
    @TableField(value = "message_target", condition = LIKE)
    private String messageTarget;



}
